/*
 * @Description:
 * @Version: 2.0
 * @Autor: zhangjx
 * @Date: 2023-05-26 18:21:33
 * @LastEditors: uphldjx 1373577124@qq.com
 * @LastEditTime: 2024-06-20 17:16:06
 */

import { RouteRecordRaw } from 'vue-router'
const DefaultLayout = () => import('@/layout/default/index.vue')
const nxLayout = () => import("@/layout/nxLayout/index.vue");
const Layout = DefaultLayout
const remainingRouter: RouteRecordRaw[] = [
  {
    path: "/",
    component: Layout,
    redirect: "/Home1",
    name: "Home",
    meta: {},
    children: [
      {
        path: "Home1",
        component: () => import("@/views/Home1/index.vue"),
        name: "Home1",
        meta: {
          transition: "slide-left",
          title: "首页-养老机构",
        },
      },
      {
        path: "Home1Facilities",
        component: () => import("@/views/Home1/facilities.vue"),
        name: "Home1Facilities",
        meta: {
          transition: "slide-left",
          title: "首页-养老服务设施",
        },
      },
      {
        path: "Home2",
        component: () => import("@/views/Home2/index.vue"),
        name: "Home2",
        meta: {
          transition: "slide-left",
          title: "首页-2",
        },
      },
      {
        path: "Home3",
        component: () => import("@/views/Home3/index.vue"),
        name: "Home3",
        meta: {
          transition: "slide-left",
          title: "首页-3",
        },
      },
      {
        path: "Home4",
        component: () => import("@/views/Home4/index.vue"),
        name: "Home4",
        meta: {
          transition: "slide-left",
          title: "首页-4",
        },
      },
    ],
  },
  {
    path: "/nx",
    component: nxLayout,
    redirect: "/nx/index",
    name: "nx",
    hidden: true,
    children: [
      {
        path: "index",
        component: () => import("@/views/nx/index.vue"),
        name: "nx_index",
        meta: {},
      },
    ],
  },
  {
    path:'/demo',
    name:'demo',
    component:()=>import('@/views/demo/index.vue'),
  }
];

export default remainingRouter
